//工厂模式
function Person(name,age,job){
    let o=new Object()
    o.name=name
    o.age=age
    o.job=job
    o.sayname=function(){
        console.log(this.name);
    }
    return o
}